Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add init.scripts and systemd #146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

p365labs
Copy link

I've created a couple of scripts to have :

  • BC system V init script for old OS releases
  • New Systemd script to support init script with new Systemd

The build scripts have been updated so the build will take
care of Systemd & for old System V init scripts. this way when installing
.deb everyone will be able to start the uniqush-push deamon easily.

Copy link
Member

@mishan mishan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! A question about the fpm change for the DEB -- whether the excludes should also be applied for the RPM. LGTM otherwise


ARCH="`uname -m`"

cp "$TEMP/bin/uniqush-push" "$BUILD/usr/bin"
cp "$TEMP/src/github.com/uniqush/uniqush-push/conf/uniqush-push.conf" "$BUILD/etc/uniqush"
cp "../conf/systemd/uniqush-push.service" "$BUILD/systemd/uniqush-push.service"
cp "../conf/systemvinit/uniqush.init" "$BUILD/systemvinit/uniqush-push"
cp "$TEMP/src/github.com/uniqush/uniqush-push/LICENSE" "$LICENSE"

fpm -s dir -t rpm -v "$VERSION" -n uniqush-push --license="$LICENSE" --maintainer="Nan Deng" --vendor "uniqush" --url="http://uniqush.org" --category Network --description "Uniqush is a free and open source software which provides a unified push service for server-side notification to apps on mobile devices" -a "$ARCH" -C "$BUILD" .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this need an --exclude="system*" too?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do u mean ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it works either on Systemd and on the old systemV

@p365labs p365labs force-pushed the addInitScriptsDEB branch 2 times, most recently from b35dce3 to b0d3478 Compare August 13, 2017 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants